home *** CD-ROM | disk | FTP | other *** search
- AUTOMATON*
-
- Chaos
-
- This uses the Moore neighbourhood & the maximum of 256 cell states. The
- states are partitioned into two sections. On one, evolution occurs by
- averaging & incrementing the cells (as in Rug) & on the other in a
- 'approximately' chaotic manner; there is a slight overlap between the two
- resulting bands of states. This leads to competing regions of 'Rug' type
- stability & of 'Chaos'. Try 150x100 & 50x40 windows.
-
- INITIALISATION*
-
- 10DEF PROCdo
- 20*SetEval wrap on
- 30*SetEval l 96
- 40*SetEval k 115
- 50*SetEval inc 13
- 60ENDPROC
-
- SCREEN*
-
- 10DEF PROCdo
- 20PROCsoup(0,256,1)
- 30ENDPROC
-
- CODE*
-
- ( CELL [<l>/2] < IF ([FNround(2*<k>/<l>*256)] CELL * 8 >> ==)
- CELL <l> <= IF ([FNround(2*<k>/<l>*256)] CELL * 8 >>
- [FNround(2*<k>)] SWAP - ==)
- READ_NEIG
- SUM_NEIG 3 >> <inc> + == )
-
- END*